home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / factor.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  3KB  |  100 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  3.  
  4. <MODE>
  5.     <PROPS>
  6.         <PROPERTY NAME="indentOpenBrackets" VALUE="[{"/>
  7.         <PROPERTY NAME="indentCloseBrackets" VALUE="]}"/>
  8.         <PROPERTY NAME="indentNextLines" VALUE="^(:|M:|C:|PREDICATE:)[^;]*"/>
  9.         <PROPERTY NAME="unindentNextLines" VALUE="^.*;.*$"/>
  10.         <PROPERTY NAME="doubleBracketIndent" VALUE="true"/>
  11.         <PROPERTY NAME="commentStart" VALUE="("/>
  12.         <PROPERTY NAME="commentEnd" VALUE=")"/>
  13.         <PROPERTY NAME="lineComment" VALUE="!"/>
  14.         <PROPERTY NAME="noWordSep" VALUE="+-*=><;.?/'()%,_|"/>
  15.     </PROPS>
  16.     <RULES IGNORE_CASE="FALSE" NO_WORD_SEP="+-*=><;.?/'()%,_"
  17.         HIGHLIGHT_DIGITS="TRUE" DIGIT_RE="-?\d+([./]\d+)?">
  18.         <EOL_SPAN TYPE="COMMENT2" AT_WORD_START="TRUE"
  19.             DELEGATE="COMMENT">#! </EOL_SPAN>
  20.         <EOL_SPAN TYPE="COMMENT1" AT_WORD_START="TRUE"
  21.             DELEGATE="COMMENT">! </EOL_SPAN>
  22.  
  23.         <!-- parsing words -->
  24.         <SEQ_REGEXP TYPE="MARKUP"
  25.             HASH_CHAR="\"
  26.             AT_WORD_START="TRUE">\\\s+(\S+)</SEQ_REGEXP>
  27.         <SEQ_REGEXP TYPE="MARKUP"
  28.             HASH_CHAR=":"
  29.             AT_WORD_START="TRUE">:\s+(\S+)</SEQ_REGEXP>
  30.         <SEQ_REGEXP TYPE="MARKUP"
  31.             HASH_CHAR="IN:"
  32.             AT_WORD_START="TRUE">IN:\s+(\S+)</SEQ_REGEXP>
  33.         <SEQ_REGEXP TYPE="MARKUP"
  34.             HASH_CHAR="USE:"
  35.             AT_WORD_START="TRUE">USE:\s+(\S+)</SEQ_REGEXP>
  36.         <SEQ_REGEXP TYPE="LITERAL2"
  37.             HASH_CHAR="CHAR:"
  38.             AT_WORD_START="TRUE">CHAR:\s+(\S+)</SEQ_REGEXP>
  39.         <SEQ_REGEXP TYPE="LITERAL2"
  40.             HASH_CHAR="BIN:"
  41.             AT_WORD_START="TRUE">BIN:\s+(\S+)</SEQ_REGEXP>
  42.         <SEQ_REGEXP TYPE="LITERAL2"
  43.             HASH_CHAR="OCT:"
  44.             AT_WORD_START="TRUE">OCT:\s+(\S+)</SEQ_REGEXP>
  45.         <SEQ_REGEXP TYPE="LITERAL2"
  46.             HASH_CHAR="HEX:"
  47.             AT_WORD_START="TRUE">HEX:\s+(\S+)</SEQ_REGEXP>
  48.  
  49.         <SPAN TYPE="COMMENT3" DELEGATE="STACK_EFFECT" NO_LINE_BREAK="TRUE">
  50.             <BEGIN>\s+( </BEGIN>
  51.             <END>)</END>
  52.         </SPAN>
  53.         <SPAN TYPE="LITERAL1" ESCAPE="\" NO_LINE_BREAK="TRUE"
  54.             DELEGATE="LITERAL">
  55.             <BEGIN>SBUF" </BEGIN>
  56.             <END>"</END>
  57.         </SPAN>
  58.         <SPAN TYPE="LITERAL1" ESCAPE="\" NO_LINE_BREAK="TRUE"
  59.             DELEGATE="LITERAL">
  60.             <BEGIN>"</BEGIN>
  61.             <END>"</END>
  62.         </SPAN>
  63.         <SPAN TYPE="MARKUP" DELEGATE="USING">
  64.             <BEGIN>USING: </BEGIN>
  65.             <END>;</END>
  66.         </SPAN>
  67.  
  68.         <SEQ TYPE="OPERATOR">[</SEQ>
  69.         <SEQ TYPE="OPERATOR">]</SEQ>
  70.         <SEQ TYPE="OPERATOR">{</SEQ>
  71.         <SEQ TYPE="OPERATOR">}</SEQ>
  72.  
  73.         <KEYWORDS>
  74.             <KEYWORD1>>r</KEYWORD1>
  75.             <KEYWORD1>r></KEYWORD1>
  76.  
  77.             <MARKUP>;</MARKUP>
  78.  
  79.             <LITERAL3>t</LITERAL3>
  80.             <LITERAL4>f</LITERAL4>
  81.  
  82.             <COMMENT2>#!</COMMENT2>
  83.             <COMMENT1>!</COMMENT1>
  84.         </KEYWORDS>
  85.     </RULES>
  86.  
  87.     <RULES SET="STACK_EFFECT" DEFAULT="COMMENT4">
  88.         <SEQ TYPE="COMMENT3">--</SEQ>
  89.     </RULES>
  90.  
  91.     <RULES SET="LITERAL" DEFAULT="LITERAL1">
  92.     </RULES>
  93.  
  94.     <RULES SET="COMMENT" DEFAULT="COMMENT1">
  95.     </RULES>
  96.  
  97.     <RULES SET="USING" DEFAULT="LITERAL2">
  98.     </RULES>
  99. </MODE>
  100.